<h1>111</h1>
<script src="//cdn.bootcss.com/jquery/2.2.3/jquery.min.js"></script>
<script>
    var aaa = {!! json_encode($data) !!};
    alert(aaa);
    console.log(aaa)
</script>